package com.example.demo.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
 * @author hankChan
 *         2018/1/3 0003.
 */
public class ApiResponseResult<T> implements Serializable {

    private static final long serialVersionUID = 4245452801305871112L;

    @JsonProperty("code")
    @SerializedName("code")
    private String code;

    @JsonProperty("msg")
    @SerializedName("msg")
    private String msg;

    @JsonProperty("is_success")
    @SerializedName("is_success")
    private Boolean isSuccess;

    @JsonProperty("result")
    @SerializedName("result")
    private T result;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Boolean getIsSuccess() {
        return isSuccess;
    }

    public void setIsSuccess(Boolean success) {
        isSuccess = success;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }
}
